<?php

namespace app\index\model;

use think\Model;

class ReadsModel extends Model
{
    protected $table = 'newzs_reads';


    /**
     * @param $table
     * @param $mid
     * @param $uid
     * @return bool
     */
    public function add_reads($table, $mid, $uid, $comid){
        return $this->save([
            'table' => $table,
            'comid' => $comid,
            'mid' => $mid,
            'optid' => $uid,
            'optdt' => date('Y-m-d H:i:s'),
            'adddt' => date('Y-m-d H:i:s'),
            'stotal' => 1
        ]);
    }

}

